// favicon.js
var http = require('http');

var counter = 0;

var server = http.createServer(function(req, resp){
    if(req.url!='/favicon.ico'){ // 清除第二次访问
        var mark = (counter++);
        console.log('访问一次!' + mark);
        resp.end('hello,world! ' + mark);
    }
});
server.listen(3000, '127.0.0.1');